package com.jzxy.PingFen.utils;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * ClassName:WebUtils
 * Package:com.jzxy.PingFen.utils
 * Description:
 *
 * @Author: dlh
 * @Creat:2025/1/16-21:27
 */
public class WebUtils {
    public static String renderString(HttpServletResponse response, String string) {
        try {
            response.setStatus(200);
            response.setContentType("application/json");
            response.setCharacterEncoding("utf-8");
            response.getWriter().print(string);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return null;
    }
}
